<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="../org/angular.min.js"></script>
</head>
<body>
<div ng-app="hd" ng-controller="ctrl">
    <table border="1" width="600">
        <tr>
            <td>
                <input type="checkbox" ng-model="all">
                <span ng-bind="all?'取消' : '全选'"></span>
            </td>
            <td>名称</td>
            <td>地址</td>
        </tr>
        <tr ng-repeat="v in data">
            <td>
                <input type="checkbox" ng-checked="all">
            </td>
            <td>{{v.name}}</td>
            <td>{{v.url}}</td>
        </tr>

    </table>
</div>


<script>
    var m = angular.module('hd', []);
    m.controller('ctrl', ['$scope', function ($scope) {
        $scope.data = [
            {name: '后盾人', url: 'houdunren.com'},
            {name: '后盾网', url: 'houdunwang.com'},
            {name: '后盾云', url: 'houdunyun.com'},
            {name: 'hdphp', url: 'hdphp.com'},
            {name: 'hdcms', url: 'hdcms.com'}
        ];


    }]);
</script>

</body>
</html>

